package com.future.strategy;

public class UserComparetor implements Comparetor<User>{
    @Override
    public int compareTo(User o1, User o2) {
        if (o1.getId() < o2.getId()) {
            return -1;
        } else if (o1.getId() == o2.getId()) {
            return 0;
        } else {
            return 1;
        }
    }
}
